﻿@model ELTE.SEM.Data.ViewModels.LoginViewModel
<div id="login-form-container">
    <div id="login-form">
        @using (Html.BeginForm("Login", "Account"))
        {
            <div class="login-field">
                <div>@Html.LabelFor(m => m.UserName)</div>
                <div>@Html.TextBoxFor(m => m.UserName)</div>
            </div>
            <div class="login-field">
                <div>@Html.LabelFor(m => m.Password)</div>
                <div>@Html.PasswordFor(m => m.Password)</div>
            </div>
            <div class="login-field">
                <div>
                    <input type="submit" id="btn-do-login" class="" value="Belépés" /></div>
                <div>
                    @if (Session["LoginResult"] != null && (bool)Session["LoginResult"] == false)
                    {
                        <div id="login-result-fail">Sikertelen bejelentkezés</div>
                    }
                    @{ Session["LoginResult"] = null; }
                </div>
            </div>
            


        }
    </div>
</div>
